const AuthCtrl = require('./auth.ctrl')
const checkToken = require('../../middleware/checkToken')
module.exports = router => {
  router
    .get('/auths', checkToken, AuthCtrl.getAuths)
    .post('/auths', checkToken, AuthCtrl.createAuths)
    .post('/login', AuthCtrl.login)
    .post('/logout', checkToken, AuthCtrl.logout)
    .delete('/auths/:id', checkToken, AuthCtrl.removeAuth)
}